define(['jsonview'], function(jsonview) {
  return function() {
    var fruit = {
      apple: {
        weight: 23112.12,
        price: 13.38,
        place: '广州'
      },
      banana: {
        weight: 3243242.2,
        price: [4.18, 2.32, 5.0],
        place: ['广州', '厦门', '福建']
      }
    }

    var newFruit = {
      apple: {
        name: '红富士'
      },
      banana: {
        price: [12.18],
        place: '上海'
      },
      penapple: {
        name: '凤梨'
      }
    }

    document.getElementById('main').innerHTML = jsonview(Object.assign(fruit, newFruit));
  }
})